/** 
 * Goal.java
 * PROJECT 3: Sliding Block Puzzle Solver
 * @author Jonathan Kotker	cs61b-ar
 * @author Wei Zhong Yeh	cs61b-av
 * 
 * Tray that stores blocks based on the provided goal configuration. 
 */

public class Goal extends Tray {
	
	public Goal ( ) {
		super ( );
	}
	
	/**
	 * Checks to see if given configuration tray satisfies this goal configuration
	 * @param tray	Tray object to check configuration against
	 * @return		true, if satisfied
	 */
	public boolean goalReached (Tray tray) {
		return tray.myBlocks.containsAll (this.myBlocks);
	}
}